package com.example.recycleview;

import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Currency;
import java.util.List;

public class MainActivity_Helper extends AppCompatActivity {
    private Cursor cursor,cursor2;
    private MyDAO myDAO;
    private List name=new ArrayList();
    private int age;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_helper);
        myDAO=new MyDAO(MainActivity_Helper.this);
        /*myDAO.MyInsert("c",15);
        myDAO.MyInsert("h",15);
        myDAO.MyInsert("f",15);
       myDAO.MyInsert("chf",20);*/

       myDAO.MyDelete("c");

        name= myDAO.MyQuery("1");
//        myDAO.MyUpdate("c",30);

        for(int i=0;i<name.size();i++)
            Log.d("DAO",name.get(i).toString());
        /*int average=myDAO.average();
        Log.d("DAO",String.valueOf(average));*/

    }

}